
public class Game{

	
	private int timeOfDay;
	
	private static Environment e = new Environment(640,480);
	private static Drawer d = new Drawer(e);
	public static void main(String args[]){
		e.setDrawer(d);
		while(true)
		{
			e.update();
			d.Paint();
			try
			{
				Thread.sleep(10);
			}
			catch(Exception e)
			{
			}
		}
	}
	

	/**
	 * @return the timeOfDay
	 */
	public int getTimeOfDay() {
		return timeOfDay;
	}
	/**
	 * @param timeOfDay the timeOfDay to set
	 */
	public void setTimeOfDay(int timeOfDay) {
		this.timeOfDay = timeOfDay;
	}
	
}
